package com.springws.service.impl;

import javax.jws.WebService;

import org.springframework.stereotype.Service;

import com.springws.bean.HelloBean;
import com.springws.service.HelloService;


@Service("helloService") //spring bean
@WebService(serviceName="helloService",targetNamespace="http://impl.ws.com") //接口和实现类都需要声明  
public class HelloServiceImpl implements HelloService {

	public String sayHello(String name) { 
		return "HelloServiceImpl  say hello :"+name;
	}
	public HelloBean sayHelloBean(String name) { 
		HelloBean helloBean =new HelloBean();
		helloBean.setId(983);
		helloBean.setName(name);
		return helloBean;
	}
	public HelloBean sayHelloBean2(int id, String name) { 
		HelloBean helloBean =new HelloBean();
		helloBean.setId(  id);
		helloBean.setName(name);
		return helloBean;
	}

}
